Skip to content

Add LLM tracing and observability guardrails skill and prompt - #97

Merged
rmkr-dev merged 2 commits into
mainfrom
add-llm-tracing-guardrails
Nov 14, 2026
Merged

rmkr-dev merged 2 commits into
mainfrom
add-llm-tracing-guardrails

Conversation

@rmkr-dev

Copy link
Copy Markdown
Owner

Adds one Skillbook entry and one Promptbook entry for tracing LLM services and gateways with OpenTelemetry.

Skill: llm-tracing-observability-guardrails

  • One trace per inbound request, one CLIENT span per model attempt so retries and fallbacks are visible, nested execute_tool / invoke_agent spans
  • GenAI semantic convention attributes and metrics from a pinned version, kept in one constants class (the conventions are still in Development status and rename between versions); gateway facts under llm.gateway.*
  • Prompt, completion, tool argument, and retrieved text capture off by default; opt-in is flagged, time-boxed, and redacted
  • Provider-reported usage, bounded metric labels, W3C propagation across async/streaming/queues, Collector tail sampling, telemetry tests

Prompt: add-llm-tracing-and-genai-metrics

  • Inventory, span tree, attributes, content capture, metrics, propagation, sampling/export, tests, verification

Formats noted for Copilot, Claude Code, and Codex. node scripts/site-check.mjs passes locally (59 skills / 59 prompts).

@rmkr-dev
rmkr-dev merged commit c414979 into main Nov 14, 2026
1 check passed
@rmkr-dev
rmkr-dev deleted the add-llm-tracing-guardrails branch November 14, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant